

// document.body.innerText ="Hello,World!"

// var time = 10;
// document.body.innerText = time.toString();

// setInterval(function()
// {
//     if(time>1)
//     {
//         time--;
//         document.body.innerText = time.toString();
//     }
//     else{
//         document.body.innerText = "Boom!"
//     }
// },1000);

var canvas = document.getElementById("gameCanvas")as HTMLCanvasElement;
console.log(canvas)
var context = canvas.getContext("2d");
//var y = 50;
var image = new Image();
image.src = 'icon.jpg';
var click = 0;
var text1 = " ";
var text2 = " ";
var text3 = " ";
var text4 = " ";
var text5 = " ";

window.onclick = function()
{
    if(click < 107)
    {
        click++;
    }
    else
    {
        alert("This is the last page already!");
        click = 107;
    }
}

window.onmousewheel = function()
{
    if(click > 0)
    {
        click--;
    }
    else
    {
        alert("This is the first page already!");
        click = 0;
    }
}

function enterFrame()
{
    if (!context)
    {
        return;
    }
    //y++;
    canvas.width = canvas.height = 400;
    context.drawImage(image, 0, 0);
    //context.rect(0,y,50,50);
    //context.fillStyle = 'red';
    context.fill();
    context.fillStyle = 'black';
    context.font = "20px Georgia";
    context.fillText(text1, 30, 120);
    context.fillText(text2, 30, 170);  
    context.fillText(text3, 30, 220);  
    context.fillText(text4, 30, 270);  
    context.fillText(text5, 30, 320);      
    context.fillText(click.toString(), 365, 360); 
    // switch(click)
    // {
    //     case 1:
    //         text = "123";
    //     case 2:
    //         text = "456";

    // }

    if(0 == click)
    {
        text1 = "Tips:";
        text2 = "Click the mouse if you want to";
        text3 = "go to the next page.";
        text4 = "Slide the wheel if you want to";
        text5 = "go to the prev page.";
    }

    if(1 == click)
    {
        text1 = `  "She said that she would dance with `;
        text2 = `me if I brought her red roses,"`;
        text3 = " cried the young Student,";
        text4 = `"but in all my garden there is no `;
        text5 = `red rose."`;
    }

    if(2 == click)
    {
        text1 = "  From her nest in the holm-oak ";
        text2 = "tree the Nightingale heard him, ";
        text3 = "and she looked out through the leaves, ";
        text4 = "and wondered.";
        text5 = "";
    }


    if(3 == click)
    {
        text1 = `  "No red rose in all my garden!"`;
        text2 = "he cried, and his beautiful eyes";
        text3 = "filled with tears. ";
        text4 = "";
        text5 = "";
    }


    if(4 == click)
    {
        text1 = `"Ah, on what little things does happiness`;
        text2 = "depend! I have read all that the wise men";
        text3 = "have written, and all the secrets of";
        text4 = "philosophy are mine, yet for want of a ";
        text5 = `red rose is my life made wretched."`;
    }
    
    if(5 == click)
    {
        text1 = `  "Here at last is a true lover," `;
        text2 = `said the Nightingale."Night after night`;
        text3 = "have I sung of him, though I knew him";
        text4 = "not: night after night have I told his";
        text5 = "story to the stars, and now I see him.";
    }

    if(6 == click)
    {
        text1 = "His hair is dark as the hyacinth-blossom,";
        text2 = "and his lips are red as the rose of his";
        text3 = "desire; but passion has made his face like";
        text4 = "pale ivory, and sorrow has set her seal";
        text5 = `upon his brow."`;
    }

    if(7 == click)
    {
        text1 = `  "The Prince gives a ball tomorrow`;
        text2 = `night,"murmured the young Student, `;
        text3 = `"and my love will be of the company.`;
        text4 = "If I bring her a red rose she will";
        text5 = "dance with me till dawn.";
    }

    if(8 == click)
    {
        text1 = "If I bring her a red rose, ";
        text2 = "I shall hold her in my arms, ";
        text3 = "and she will lean her head upon my";
        text4 = "shoulder, and her hand will be clasped";
        text5 = "in mine.";
    }

    if(9 == click)
    {
        text1 = "But there is no red rose in my garden,";
        text2 = "so I shall sit lonely,";
        text3 = "and she will pass me by.";
        text4 = "She will have no heed of me, ";
        text5 = `and my heart will break."`;
    }

    if(10 == click)
    {
        text1 = `  "Here indeed is the true lover,"`;
        text2 = "said the Nightingale.";
        text3 = `"What I sing of, he suffers -`;
        text4 = "what is joy to me, to him is pain.";
        text5 = "Surely Love is a wonderful thing.";
    }

    if(11 == click)
    {
        text1 = "It is more precious than emeralds,";
        text2 = "and dearer than fine opals.";
        text3 = "Pearls and pomegranates cannot buy it,";
        text4 = "nor is it set forth in the marketplace.";
        text5 = "";
    }

    if(12 == click)
    {
        text1 = "It may not be purchased of the";
        text2 = "merchants, nor can it be weighed out ";
        text3 = `in the balance for gold."`;
        text4 = "";
        text5 = "";
    }

    if(13 == click)
    {
        text1 = `  "The musicians will sit in their gallery,"`;
        text2 = "said the young Student,";
        text3 = `"and play upon their stringed instruments,`;
        text4 = "and my love will dance to the sound of";
        text5 = "the harp and the violin. ";
    }

    if(14 == click)
    {
        text1 = "She will dance so lightly that her feet will";
        text2 = "not touch the floor, and the courtiers in ";
        text3 = "their gay dresses will throng round her.";
        text4 = "But with me she will not dance,";
        text5 = `for I have no red rose to give her."`;
    }

    if(15 == click)
    {
        text1 = "and he flung himself down on the grass, ";
        text2 = "and buried his face in his hands, ";
        text3 = "and wept.";
        text4 = "";
        text5 = "";
    } 

    if(16 == click)
    {
        text1 = `  "Why is he weeping?"`;
        text2 = "asked a little Green Lizard,";
        text3 = "as he ran past him with his tail in the air.";
        text4 = "";
        text5 = "";
    }

    if(17 == click)
    {
        text1 = `  "Why, indeed?" said a Butterfly,`;
        text2 = `who was fluttering about after a sunbeam."`;
        text3 = "";
        text4 = "";
        text5 = "";
    }

    if(18 == click)
    {
        text1 = `  "Why, indeed?" `;
        text2 = "whispered a Daisy to his neighbour, ";
        text3 = "in a soft, low voice.";
        text4 = "";
        text5 = "";
    }

    if(19 == click)
    {
        text1 = `  "He is weeping for a red rose," `;
        text2 = "said the Nightingale.";
        text3 = "";
        text4 = "";
        text5 = "";
    }

    if(20 == click)
    {
        text1 = `  "For a red rose?" they cried;`;
        text2 = `"how very ridiculous!"`;
        text3 = "and the little Lizard,";
        text4 = "who was something of a cynic,";
        text5 = "laughed outright.";
    }

    if(21 == click)
    {
        text1 = "  But the Nightingale understood the";
        text2 = "secret of the Student's sorrow,";
        text3 = "and she sat silent in the oak-tree,";
        text4 = "and thought about the mystery of Love.";
        text5 = "";
    }

    if(22 == click)
    {
        text1 = "  Suddenly she spread her brown wings";
        text2 = "for flight, and soared into the air.";
        text3 = "She passed through the grove like a ";
        text4 = "shadow, and like a shadow she sailed ";
        text5 = "across the garden.";
    }

    if(23 == click)
    {
        text1 = "  In the centre of the grass-plot was ";
        text2 = "standing a beautiful Rose-tree, and when";
        text3 = "she saw it she flew over to it,";
        text4 = "and lit upon a spray.";
        text5 = "";
    }

    if(24 == click)
    {
        text1 = `  "Give me a red rose,"`;
        text2 = `she cried, "and I will sing you`;
        text3 = `my sweetest song."`;
        text4 = "";
        text5 = "";
    }

    if(25 == click)
    {
        text1 = "  But the Tree shook its head.";
        text2 = "";
        text3 = "";
        text4 = "";
        text5 = "";
    }

    if(26 == click)
    {
        text1 = `  "My roses are white," it answered;`;
        text2 = `"as white as the foam of the sea,`;
        text3 = "and whiter than the snow upon the";
        text4 = "mountain. But go to my brother who";
        text5 = "grows round the old sun-dial,";
    }

    
    if(27 == click)
    {
        text1 = `and perhaps he will give you what `;
        text2 = `you want."`;
        text3 = "";
        text4 = "";
        text5 = "";
    }

    
    if(28 == click)
    {
        text1 = "  So the Nightingale flew over to";
        text2 = "the Rose-tree that was growing round";
        text3 = "the old sun-dial.";
        text4 = "";
        text5 = "";
    }

    if(29 == click)
    {
        text1 = `  "Give me a red rose,"`;
        text2 = `she cried, "and I will sing you`;
        text3 = `my sweetest song."`;
        text4 = "";
        text5 = "";
    }

    if(30 == click)
    {
        text1 = "  But the Tree shook its head.";
        text2 = "";
        text3 = "";
        text4 = "";
        text5 = "";
    }

    if(31 == click)
    {
        text1 = `  "My roses are yellow," it answered;`;
        text2 = `"as yellow as the hair of the mermaiden`;
        text3 = "who sits upon an amber throne,";
        text4 = "mountain. But go to my brother who";
        text5 = "grows round the old sun-dial, ";
    }

    if(32 == click)
    {
        text1 = `and perhaps he will give you what `;
        text2 = `you want."`;
        text3 = "and yellower than the daffodil that";
        text4 = "blooms in the meadow before the mower";
        text5 = "comes with his scythe.";
    }
   
    if(33 == click)
    {
        text1 = "But go to my brother who grows beneath";
        text2 = "the Student's window,";
        text3 = "and perhaps he will give you what";
        text4 = `you want."`;
        text5 = "";
    }

    if(34 == click)
    {
        text1 = "  So the Nightingale flew over to the";
        text2 = "Rose-tree that was growing beneath the";
        text3 = "Student's window.";
        text4 = "";
        text5 = "";
    }

    if(35 == click)
    {
        text1 = `  "Give me a red rose,"`;
        text2 = `she cried, "and I will sing you`;
        text3 = `my sweetest song."`;
        text4 = "";
        text5 = "";
    }

    if(36 == click)
    {
        text1 = "  But the Tree shook its head.";
        text2 = "";
        text3 = "";
        text4 = "";
        text5 = "";
    }

    if(37 == click)
    {
        text1 = `  "My roses are red," it answered,`;
        text2 = `"as red as the feet of the dove,`;
        text3 = "and redder than the great fans of";
        text4 = "coral that wave and wave in the";
        text5 = "ocean-cavern. ";
    }

    if(38 == click)
    {
        text1 = "But the winter has chilled my veins,";
        text2 = "and the frost has nipped my buds,";
        text3 = "and the storm has broken my branches,";
        text4 = "and I shall have no roses at all this";
        text5 = `year."`;
    }

    if(39 == click)
    {
        text1 = `  "One red rose is all I want,"`;
        text2 = "cried the Nightingale,";
        text3 = `"only one red rose!`;
        text4 = "Is there no way by which I can ";
        text5 = `get it?"`;
    }

    if(40 == click)
    {
        text1 = `  "There is away,"`;
        text2 = "answered the Tree;";
        text3 = `"but it is so terrible that I`;
        text4 = `dare not tell it to you."`;
        text5 = "";
    } 

    if(41 == click)
    {
        text1 = `  "Tell it to me,"`;
        text2 = "said the Nightingale,";
        text3 = `"I am not afraid."`;
        text4 = "";
        text5 = "";
    }

    
    if(42 == click)
    {
        text1 = `  "If you want a red rose,"`;
        text2 = "said the Tree,";
        text3 = `"you must build it out of music`;
        text4 = "by moonlight, and stain it with";
        text5 = "your own heart's-blood. ";
    }

    if(43 == click)
    {
        text1 = "You must sing to me with your breast";
        text2 = "against a thorn. All night long you must";
        text3 = "sing to me, and the thorn must pierce ";
        text4 = "your heart, and your life-blood must";
        text5 = `flow into my veins, and become mine."`;
    }

    if(44 == click)
    {
        text1 = `  "Death is a great price to pay for a `;
        text2 = `red rose," cried the Nightingale,`;
        text3 = `"and Life is very dear to all.It is`;
        text4 = "pleasant to sit in the green wood, and ";
        text5 = "to watch the Sun in his chariot of gold,";
    } 

    if(45 == click)
    {
        text1 = "and the Moon in her chariot of pearl.";
        text2 = "Sweet is the scent of the hawthorn, ";
        text3 = "and sweet are the bluebells that hide in ";
        text4 = "the valley, and the heather that blows on";
        text5 = "the hill.";
    }  

    if(46 == click)
    {
        text1 = "Yet Love is better than Life,";
        text2 = "and what is the heart of a bird compared";
        text3 = `to the heart of a man?"`;
        text4 = "";
        text5 = "";
    } 

    if(47 == click)
    {
        text1 = "  So she spread her brown wings for ";
        text2 = "flight, and soared into the air. She";
        text3 = "swept over the garden like a shadow,";
        text4 = "and like a shadow she sailed through";
        text5 = "the grove.";
    }


    if(48 == click)
    {
        text1 = "  The young Student was still lying ";
        text2 = "on the grass, where she had left him,";
        text3 = "and the tears were not yet dry in his";
        text4 = "beautiful eyes.";
        text5 = "";
    }

    if(49 == click)
    {
        text1 = `  "Be happy," cried the Nightingale,`;
        text2 = `"be happy, you shall have your red rose.`;
        text3 = "I will build it out of music by moonlight,";
        text4 = "and stain it with my own heart's-blood.";
        text5 = "All that I ask of you in return is that";
    }

    if(50 == click)
    {
        text1 = "you will be a true lover, for Love";
        text2 = "is wiser than Philosophy, though she ";
        text3 = "is wise, and mightier than Power, though ";
        text4 = "he is mighty. Flame-coloured are his ";
        text5 = "wings, and coloured like flame is his body.";
    }

    if(51 == click)
    {
        text1 = "His lips are sweet as honey, and his";
        text2 = `breath is like frankincense."`;
        text3 = "";
        text4 = "";
        text5 = "";
    } 

    if(52 == click)
    {
        text1 = "  The Student looked up from the grass,";
        text2 = "and listened, but he could not understand";
        text3 = "what the Nightingale was saying to him,";
        text4 = "for he only knew the things that are ";
        text5 = "written down in books.";
    }

    if(53 == click)
    {
        text1 = "  But the Oak-tree understood,";
        text2 = "and felt sad,";
        text3 = "for he was very fond of the little ";
        text4 = "Nightingale who had built her nest in ";
        text5 = "his branches.";
    }

    if(54 == click)
    {
        text1 = `  "Sing me one last song,"`;
        text2 =  "he whispered;";
        text3 = `"I shall feel very lonely when you`;
        text4 = `are gone."`;
        text5 = "";
    }

    if(55 == click)
    { 
        text1 = "  So the Nightingale sang to the ";
        text2 = "Oak-tree, and her voice was like water ";
        text3 = "bubbling from a silver jar.";
        text4 = "";
        text5 = "";
    }

    if(56 == click)
    {
        text1 = "  When she had finished her song ";
        text2 = "the Student got up, ";
        text3 = "and pulled a note-book and a ";
        text4 = "lead-pencil out of his pocket.";
        text5 = "";
    }

  
    if(57 == click)
    {
        text1 = "  Tie bu xia qu le";
        text2 = "hou mian de dou shi fu zhi de";
        text3 = "dao di wei shen me yao xie";
        text4 = "one thousand hang dai ma";
        text5 = "hai bu neng xian shi zhong wen";
    }  

    if(58 == click)
    {
        text1 = `  "She said that she would dance with `;
        text2 = `me if I brought her red roses,"`;
        text3 = " cried the young Student,";
        text4 = `"but in all my garden there is no `;
        text5 = `red rose."`;
    }

    if(59 == click)
    {
        text1 = "  From her nest in the holm-oak ";
        text2 = "tree the Nightingale heard him, ";
        text3 = "and she looked out through the leaves, ";
        text4 = "and wondered.";
        text5 = "";
    }


    if(60 == click)
    {
        text1 = `  "No red rose in all my garden!"`;
        text2 = "he cried, and his beautiful eyes";
        text3 = "filled with tears. ";
        text4 = "";
        text5 = "";
    }


    if(61 == click)
    {
        text1 = `"Ah, on what little things does happiness`;
        text2 = "depend! I have read all that the wise men";
        text3 = "have written, and all the secrets of";
        text4 = "philosophy are mine, yet for want of a ";
        text5 = `red rose is my life made wretched."`;
    }
    
    if(62 == click)
    {
        text1 = `  "Here at last is a true lover," `;
        text2 = `said the Nightingale."Night after night`;
        text3 = "have I sung of him, though I knew him";
        text4 = "not: night after night have I told his";
        text5 = "story to the stars, and now I see him.";
    }

    if(63 == click)
    {
        text1 = "His hair is dark as the hyacinth-blossom,";
        text2 = "and his lips are red as the rose of his";
        text3 = "desire; but passion has made his face like";
        text4 = "pale ivory, and sorrow has set her seal";
        text5 = `upon his brow."`;
    }

    if(64 == click)
    {
        text1 = `  "The Prince gives a ball tomorrow`;
        text2 = `night,"murmured the young Student, `;
        text3 = `"and my love will be of the company.`;
        text4 = "If I bring her a red rose she will";
        text5 = "dance with me till dawn.";
    }

    if(65 == click)
    {
        text1 = "If I bring her a red rose, ";
        text2 = "I shall hold her in my arms, ";
        text3 = "and she will lean her head upon my";
        text4 = "shoulder, and her hand will be clasped";
        text5 = "in mine.";
    }

    if(66 == click)
    {
        text1 = "But there is no red rose in my garden,";
        text2 = "so I shall sit lonely,";
        text3 = "and she will pass me by.";
        text4 = "She will have no heed of me, ";
        text5 = `and my heart will break."`;
    }

    if(67 == click)
    {
        text1 = `  "Here indeed is the true lover,"`;
        text2 = "said the Nightingale.";
        text3 = `"What I sing of, he suffers -`;
        text4 = "what is joy to me, to him is pain.";
        text5 = "Surely Love is a wonderful thing.";
    }  
    
    if(68 == click)
    {
        text1 = "It is more precious than emeralds,";
        text2 = "and dearer than fine opals.";
        text3 = "Pearls and pomegranates cannot buy it,";
        text4 = "nor is it set forth in the marketplace.";
        text5 = "";
    }

    if(69 == click)
    {
        text1 = "It may not be purchased of the";
        text2 = "merchants, nor can it be weighed out ";
        text3 = `in the balance for gold."`;
        text4 = "";
        text5 = "";
    }

    if(70 == click)
    {
        text1 = `  "The musicians will sit in their gallery,"`;
        text2 = "said the young Student,";
        text3 = `"and play upon their stringed instruments,`;
        text4 = "and my love will dance to the sound of";
        text5 = "the harp and the violin. ";
    }

    if(71 == click)
    {
        text1 = "She will dance so lightly that her feet will";
        text2 = "not touch the floor, and the courtiers in ";
        text3 = "their gay dresses will throng round her.";
        text4 = "But with me she will not dance,";
        text5 = `for I have no red rose to give her."`;
    }

    if(72 == click)
    {
        text1 = "and he flung himself down on the grass, ";
        text2 = "and buried his face in his hands, ";
        text3 = "and wept.";
        text4 = "";
        text5 = "";
    } 

    if(73 == click)
    {
        text1 = `  "Why is he weeping?"`;
        text2 = "asked a little Green Lizard,";
        text3 = "as he ran past him with his tail in the air.";
        text4 = "";
        text5 = "";
    }

    if(74 == click)
    {
        text1 = `  "Why, indeed?" said a Butterfly,`;
        text2 = `who was fluttering about after a sunbeam."`;
        text3 = "";
        text4 = "";
        text5 = "";
    }

    if(75 == click)
    {
        text1 = `  "Why, indeed?" `;
        text2 = "whispered a Daisy to his neighbour, ";
        text3 = "in a soft, low voice.";
        text4 = "";
        text5 = "";
    }

    if(76 == click)
    {
        text1 = `  "He is weeping for a red rose," `;
        text2 = "said the Nightingale.";
        text3 = "";
        text4 = "";
        text5 = "";
    }

    if(77 == click)
    {
        text1 = `  "For a red rose?" they cried;`;
        text2 = `"how very ridiculous!"`;
        text3 = "and the little Lizard,";
        text4 = "who was something of a cynic,";
        text5 = "laughed outright.";
    }

    if(78 == click)
    {
        text1 = "  But the Nightingale understood the";
        text2 = "secret of the Student's sorrow,";
        text3 = "and she sat silent in the oak-tree,";
        text4 = "and thought about the mystery of Love.";
        text5 = "";
    }

    if(79 == click)
    {
        text1 = "  Suddenly she spread her brown wings";
        text2 = "for flight, and soared into the air.";
        text3 = "She passed through the grove like a ";
        text4 = "shadow, and like a shadow she sailed ";
        text5 = "across the garden.";
    }

    if(80 == click)
    {
        text1 = "  In the centre of the grass-plot was ";
        text2 = "standing a beautiful Rose-tree, and when";
        text3 = "she saw it she flew over to it,";
        text4 = "and lit upon a spray.";
        text5 = "";
    }

    if(81 == click)
    {
        text1 = "  Zhen de yao xie a thousand hang";
        text2 = "wo gan jue wo hao xiang kuai neng";
        text3 = "kan dao xi wang le";
        text4 = "Suo yi dao di wei shen me bu neng";
        text5 = "da zhong wen a, xin hao lei";
    }  

    if(82 == click)
    {
        text1 = "  Hua kuo hao bu huan hang shi";
        text2 = "xie jiao";
        text3 = "wo jiu bu huan ";
        text4 = "hai neng da wo bu cheng";
        text5 = "zen me hai mei jie shu a";
    }

    if(83 == click)
    {
        text1 = "";
        text2 = "";
        text3 = "                           *SIGH*";
        text4 = "";
        text5 = "";
    }

    if(84 == click)
    {
        text1 = `  "Give me a red rose,"`;
        text2 = `she cried, "and I will sing you`;
        text3 = `my sweetest song."`;
        text4 = "";
        text5 = "";
    }

    if(85 == click)
    {
        text1 = "  But the Tree shook its head.";
        text2 = "";
        text3 = "";
        text4 = "";
        text5 = "";
    }

    if(86 == click)
    {
        text1 = `  "My roses are white," it answered;`;
        text2 = `"as white as the foam of the sea,`;
        text3 = "and whiter than the snow upon the";
        text4 = "mountain. But go to my brother who";
        text5 = "grows round the old sun-dial,";
    }

    
    if(87 == click)
    {
        text1 = `and perhaps he will give you what `;
        text2 = `you want."`;
        text3 = "";
        text4 = "";
        text5 = "";
    }

    
    if(88 == click)
    {
        text1 = "  So the Nightingale flew over to";
        text2 = "the Rose-tree that was growing round";
        text3 = "the old sun-dial.";
        text4 = "";
        text5 = "";
    }

    if(89 == click)
    {
        text1 = `  "Give me a red rose,"`;
        text2 = `she cried, "and I will sing you`;
        text3 = `my sweetest song."`;
        text4 = "";
        text5 = "";
    }

    if(90 == click)
    {
        text1 = "  But the Tree shook its head.";
        text2 = "";
        text3 = "";
        text4 = "";
        text5 = "";
    }

    if(91 == click)
    {
        text1 = `  "My roses are yellow," it answered;`;
        text2 = `"as yellow as the hair of the mermaiden`;
        text3 = "who sits upon an amber throne,";
        text4 = "mountain. But go to my brother who";
        text5 = "grows round the old sun-dial, ";
    }

    if(92 == click)
    {
        text1 = `and perhaps he will give you what `;
        text2 = `you want."`;
        text3 = "and yellower than the daffodil that";
        text4 = "blooms in the meadow before the mower";
        text5 = "comes with his scythe.";
    }
   
    if(93 == click)
    {
        text1 = "But go to my brother who grows beneath";
        text2 = "the Student's window,";
        text3 = "and perhaps he will give you what";
        text4 = `you want."`;
        text5 = "";
    }

    if(94 == click)
    {
        text1 = "  So the Nightingale flew over to the";
        text2 = "Rose-tree that was growing beneath the";
        text3 = "Student's window.";
        text4 = "";
        text5 = "";
    }

    if(95 == click)
    {
        text1 = `  "Give me a red rose,"`;
        text2 = `she cried, "and I will sing you`;
        text3 = `my sweetest song."`;
        text4 = "";
        text5 = "";
    }

    if(96 == click)
    {
        text1 = "  But the Tree shook its head.";
        text2 = "";
        text3 = "";
        text4 = "";
        text5 = "";
    }

    if(97 == click)
    {
        text1 = `  "My roses are red," it answered,`;
        text2 = `"as red as the feet of the dove,`;
        text3 = "and redder than the great fans of";
        text4 = "coral that wave and wave in the";
        text5 = "ocean-cavern. ";
    }

    if(98 == click)
    {
        text1 = "But the winter has chilled my veins,";
        text2 = "and the frost has nipped my buds,";
        text3 = "and the storm has broken my branches,";
        text4 = "and I shall have no roses at all this";
        text5 = `year."`;
    }

    if(99 == click)
    {
        text1 = `  "One red rose is all I want,"`;
        text2 = "cried the Nightingale,";
        text3 = `"only one red rose!`;
        text4 = "Is there no way by which I can ";
        text5 = `get it?"`;
    }

    if(100 == click)
    {
        text1 = `  "There is away,"`;
        text2 = "answered the Tree;";
        text3 = `"but it is so terrible that I`;
        text4 = `dare not tell it to you."`;
        text5 = "";
    } 

    if(101 == click)
    {
        text1 = `  "Tell it to me,"`;
        text2 = "said the Nightingale,";
        text3 = `"I am not afraid."`;
        text4 = "";
        text5 = "";
    }

    if(102 == click)
    {
        text1 = `  "Finally!"`;
        text2 = `"Yi qian hang le!"` ;
        text3 = "cried the Nightingale,";
        text4 = `"Wo ta ma zhong yu xie wan le yao."`;
        text5 = "";
    }    

    if(103 == click)
    {
        text1 = `  "What I a silly thing Love is,"`;
        text2 = "said the Student as he walked away. ";
        text3 = `"It is not half as useful as Logic, `;
        text4 = "for it does not prove anything,";
        text5 = "and it is always telling one of things ";
    }

    if(104 == click)
    {
        text1 = "that are not going to happen, ";
        text2 = "and making one believe things that ";
        text3 = "are not true. In fact, it is quite ";
        text4 = "unpractical, and, as in this age to be ";
        text5 = "practical is everything,";
    }

    if(105 == click)
    {
        text1 = "I shall go back to Philosophy and ";
        text2 = `study Metaphysics."`;
        text3 = "";
        text4 = "";
        text5 = "";
    }

    if(106 == click)
    {
        text1 = "  So he returned to his room and ";
        text2 = "pulled out a great dusty book, ";
        text3 = "and began to read.";
        text4 = "";
        text5 = "";
        image.src = 'icon.jpg';
    }

   
    if(107 == click)
    {
        text1 = "";
        text2 = "";
        text3 = "";
        text4 = "";
        text5 = "";
        image.src = 'icon2.jpg';
    } 

    requestAnimationFrame(enterFrame);
}
requestAnimationFrame(enterFrame);
//setInterval(enterFrame, 1000 / 60)